package com.mccrea.pattern.flyweight;

/**
 * @author mccrea
 * @version 1.0
 * @description: 享元模式测试
 * @date 2021/5/12 21:21
 */
public class Client {
    public static void main(String[] args) {
        WebSiteFactory factory = new WebSiteFactory();
        WebSite webSite1 = factory.getWebSiteCategory("新闻");
        WebSiteUser user = new WebSiteUser("张三");
        webSite1.use(user);
    }
}
